package com.train.mgr.modules.system.dto.request;

import com.train.mgr.modules.system.dto.request.groups.Insert;
import com.train.mgr.modules.system.dto.request.groups.Update;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
public class PositionAddReqDTO implements Serializable {

    @ApiModelProperty(name = "postId", value = "岗位主键ID")
    @NotNull(message = "岗位主键ID必填", groups = {Update.class})
    private Long postId;

    @ApiModelProperty(name = "postCode", value = "岗位编码")
    @NotBlank(message = "岗位编码必填", groups = {Insert.class, Update.class})
    private String postCode;

    @ApiModelProperty(name = "postName", value = "岗位名称")
    @NotBlank(message = "岗位名称必填", groups = {Insert.class, Update.class})
    private String postName;

    @ApiModelProperty(name = "postWeight", value = "岗位重要性设置")
    private List<PostWeightDTO> postWeight;


}
